/**
 * @file e2_t2_q2.c
 * @date 2022-03-02
 * 
 * @copyright Copyright (c) 2022 cnzyx MIT Licence
 * 
 */

#include<stdio.h>
#include<stdlib.h>

unsigned fun(unsigned w){
    unsigned temp=0,result=0;
    for(;w/10>0;w/=10){
        temp*=10;
        temp+=w%10;
    }
    for(;temp>0;temp/=10){
        result*=10;
        result+=temp%10;
    }
    return result;
}

int main(int argc, char const *argv[])
{
    //UTF-8
    system("chcp 65001");

    unsigned in_num,result;
    printf("请输入一个大于10的无符号整数：");
    scanf("%u,",&in_num);
    result=fun(in_num);
    printf("结果：%u\n",result);
    
    //Pause console
    system("pause");
    return 0;
}
